; _________________________________________________
;| Omni-Psych Super Dizzy [LE] Version 3  by Seven |
; ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
;===============================================================================
;=====================================<Supers>==================================
;===============================================================================

;===============================================================================
;                    Version  3  THE Challenge Edition
;===============================================================================
;=====The Number's Next to the constant's are optional Versions of [LE]=========
;===============================================================================
;==And For Those Who Wish To Seek The Hardest Challenge, Use Her Optional Stats=
;===============================================================================


;============================Omni Dragon Flame==================================
[Statedef 2200]
type=S
physics=S
movetype=A
anim = 2200
velset = 0,0
ctrl = 0

[State 2200, Omni-Effect]
type=nothitby
trigger1=time<10
time=1
value=SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP

[State 2200]
type = PlaySnd
trigger1 = animelem = 1,1
value = 191,ifelse(var(1)>=3,var(1)*10,0)


[State pal]
type = BGPalFX
trigger1 = animelem = 1
time = 65
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = time >= 1
time = 65
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1


[State super effect]
type = Helper
trigger1 = animelem = 4
name = "super"
stateno = 2040
pos =  -10,0
ownpal = 1
supermovetime = 999
size.xscale = 1
size.yscale = 1

[State 2200, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4500
pos= 0,-80
removetime = 64
supermove = 1
sprpriority = 5

[State 2200, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2200, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2200]
type = Explod
trigger1=  timemod = 100,0
anim = 7777
sprpriority = -1
postype = p1
pos = -70,-40
removetime = 64
supermove = 1
sprpriority = 5
[State 2200, superchargepause]
type=superpause
trigger1=!time
time=60
anim=-1
sound=s4500,0
poweradd=-3000
p2defmul=1
darken=0
[State pal]
type = BGPalFX
trigger1 = animelem = 4
time = 1
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = animelem = 4,>= 26
time = 1
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1

;-------------------------------------------------------------------------------
[State 2200]
type = ChangeState
trigger1 = animtime = 0
value = 2201


;-------------------------------------------------------------------------------

[Statedef 2201]
type=S
physics=S
movetype=A
anim = 2200
velset = 0,0
ctrl = 0


[State 2201, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4500
pos= 0,-80
removetime = 64
supermove = 1
sprpriority = 5

[State 2201, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2201, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2201]
type = Explod
trigger1=  timemod = 100,0
anim = 7777
sprpriority = -1
postype = p1
pos = -70,-40
removetime = 64
supermove = 1
sprpriority = 5
[State 2201, superchargepause]
type=superpause
trigger1=!time
time=60
anim=-1
sound=s4500,0
poweradd= 0
p2defmul=1
darken=0
[State pal]
type = BGPalFX
trigger1 = animelem = 4
time = 1
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = animelem = 4,>= 26
time = 1
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1

[State pal]
type = BGPalFX
trigger1 = 1
time = 1
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1


[State helper]
type = Helper
trigger1 = animelem = 10,-2 || time = 16 || time = 120
helpertype = normal
name = "ray"
stateno = 2242
pos = 54,-200
ownpal = 1

[State helper]
type = Helper
trigger1 = animelem = 10,-2 || time = 16 || time = 120
helpertype = normal
name = "ray"
stateno = 2242
pos = 54,-250
ownpal = 1

[State super effect]
type = SuperPause
trigger1 = animelem = 10
time = 1
movetime = 1
anim = -1
sound = s4500
darken = 0
poweradd = -1

[State 2201]
type = PlaySnd
trigger1 = animelem = 10
value = 2201,ifelse(var(1)>=3,var(1)*10,0)
[State snd]
type = PlaySnd
trigger1 = animelem = 10
value = 2201,1

[State helper]
type = Helper
trigger1 = animelem = 10,-2 || time = 16 || time = 120
helpertype = normal
name = "ray"
stateno = 2242
pos = 54,-142
ownpal = 1
[State helper]
type = Helper
trigger1 = animelem = 10,-2 || time = 16 || time = 120
helpertype = normal
name = "ray"
stateno = 2242
pos = 54,-188
ownpal = 2

[State helper]
type = Helper
trigger1 = animelem = 10,-2 || time = 16 || time = 120
helpertype = normal
name = "ray"
stateno = 2242
pos = 54,-134
ownpal = 2

[State helper]
type = Helper
trigger1 = animelem = 10,-2 || time = 16 || time = 120
helpertype = normal
name = "ray"
stateno = 2242
pos = 54,-106
ownpal = 2

[State helper]
type = Helper
trigger1 = animelem = 10,-2 || time = 16 || time = 120
helpertype = normal
name = "ray"
stateno = 2242
pos = 54,-80
ownpal = 2

[State helper]
type = Helper
trigger1 = animelem = 10,-2 || time = 16 || time = 120
helpertype = normal
name = "ray"
stateno = 2242
pos = 54,-40
ownpal = 2

[State helper]
type = Helper
trigger1 = animelem = 10,-2 || time = 16 || time = 120
helpertype = normal
name = "ray"
stateno = 2242
pos = 54,0
ownpal = 2

[State 2201]
type = ChangeState
trigger1 = time = 139;88+6n
value = 2202

;-------------------------------------------------------------------------------
[Statedef 2202]
type=S
physics=S
movetype=A
anim = 2202
velset =  -7,-6
ctrl = 0


[State 2202, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4500
pos= 0,-80
removetime = 64
supermove = 1
sprpriority = 5

[State 2202, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2202, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2202]
type = Explod
trigger1=  timemod = 100,0
anim = 7777
sprpriority = -1
postype = p1
pos = -70,-40
removetime = 64
supermove = 1
sprpriority = 5
[State 2202, superchargepause]
type=superpause
trigger1=!time
time=60
anim=-1
sound=s4500,0
poweradd= 0
p2defmul=1
darken=0
[State pal]
type = BGPalFX
trigger1 = animelem = 4
time = 1
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = animelem = 4,>= 26
time = 1
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1


[State 2202]
type = PlaySnd
trigger1 = animelem = 2
value = 2202,ifelse(var(1)>=3,var(1)*10,0)

[State vel]
type = veladd
trigger1 = 1
y = .40

[State vel]
type = velset
trigger1 = pos y >= 10 && vel y > 0
x = vel x/10
y = vel y/10
[State turn]
type = turn
trigger1 = pos y >= 10 && vel y > 0
[State land]
type = ChangeState
trigger1 = pos y >= 10 && vel y > 0
value = 5100

;-------------------------------------------------------------------------------

[Statedef 2240]
type = A
movetype = A
physics = N
anim = 2241
ctrl = 0

[State 2240]
type = AssertSpecial
trigger1 = 1
flag = invisible

[State pal]
type = PalFX
trigger1 = time = 0
time = 4
add = -256,-256,-256
sinadd = 256,256,256,16
persistent = 0
ignorehitpause = 1
[State pal]
type = PalFX
trigger1 = time = 13
time = 8
sinadd = -256,-256,-256,32
persistent = 0
ignorehitpause = 1

[State explod]
type = Explod
trigger1 = time = 0
anim = 2240
removetime = -1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9
ignorehitpause = 1
[State explod]
type = Explod
trigger1 = time = 0
anim = 2241
removetime = -1
scale = 6,const(size.yscale)
sprpriority = 9
ignorehitpause = 1

[State hit]
type = HitDef
trigger1 = time = 0
trigger1 = numhelper(9100) = 1
attr = A,HP
hitflag = MAFDP
guardflag = MA
animtype = back
damage = Ceil(0.15 * enemy,Const(data.life)),Ceil(0.1 * enemy,Const(data.life))
pausetime = 0,1
sparkno = s9400
guard.sparkno = s9480
sparkxy = -10,-0
hitsound = s4020,0
guardsound = s4420,0
ground.slidetime = 20
ground.hittime = 20
yaccel = .15
ground.velocity = -1,-4
air.velocity = -1,-4
airguard.velocity = -3,-4
down.velocity = -1,-4
fall = 1
fall.recover = 0
numhits = 1
kill = 1
getpower = 0
envshake.time = 50
envshake.ampl = -20

[State hit]
type = HitDef
trigger1 = time = 0
attr = A,HP
hitflag = MAFDP
guardflag = MA
animtype = back
damage = Ceil(0.1 * enemy,Const(data.life)),Ceil(0.05 * enemy,Const(data.life))
pausetime = 0,1
sparkno = s9401
guard.sparkno = s9480
sparkxy = -10,-0
hitsound = s4020,0
guardsound = s4420,0
ground.slidetime = 20
ground.hittime = 20
yaccel = .15
ground.velocity = -1,-4
air.velocity = -1,-4
airguard.velocity = -3,-4
down.velocity = -1,-4
fall = 1
fall.recover = 0
numhits = 1
kill = 1
getpower = 0
envshake.time = 50
envshake.ampl = -20

[State explod]
type = RemoveExplod
trigger1 = time = 21
[State end]
type = DestroySelf
trigger1 = time = 21

;-------------------------------------------------------------------------------

[Statedef 2242]
type = A
movetype = A
physics = N
anim = 2243
ctrl = 0

[State 2242]
type = AssertSpecial
trigger1 = 1
flag = invisible

[State pal]
type = PalFX
trigger1 = time = 42
time = 8
sinadd = -256,-256,-256,32
persistent = 0
ignorehitpause = 1

[State explod]
type = Explod
trigger1 = time = 0
anim = 2242
removetime = -1
supermove = 1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9
ignorehitpause = 1
[State explod]
type = Explod
trigger1 = time = 0
anim = 2243
ID = 2243
supermove = 1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9
ignorehitpause = 1

[State var]
type = varset
trigger1 = time = 0
fvar(2) = 1
ignorehitpause = 1
[State var]
type = varadd
trigger1 = time = [1,9]
fvar(2) = .75
ignorehitpause = 1
[State explod]
type = ModifyExplod
trigger1 = 1
ID = 2243
scale = const(size.xscale),const(size.yscale)*fvar(2)
ignorehitpause = 1
[State explod]
type = RemoveExplod
trigger1 = time = 10
ID = 2243

[State explod]
type = Explod
trigger1 = time = 10
anim = 2244
pos = 150,0
bindtime = -1
removetime = -1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9
[State explod]
type = Explod
trigger1 = time = 10
anim = 2245
pos = 120,0
bindtime = -1
removetime = -1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9
[State explod]
type = Explod
trigger1 = time = 10
anim = 2246
pos = 90,0
bindtime = -1
removetime = -1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9
[State explod]
type = Explod
trigger1 = time = 10
anim = 2247
pos = 60,0
bindtime = -1
removetime = -1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9
[State explod]
type = Explod
trigger1 = time = 10
anim = 2248
pos = 30,0
bindtime = -1
removetime = -1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9
[State explod]
type = Explod
trigger1 = time = 10
anim = 2249
pos = 0,0
bindtime = -1
removetime = -1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9

[State hit]
type = HitDef
trigger1 = timemod = 1,0 && time = [0,120]
trigger1 = numhelper(9100) = 1
attr = A,HP
hitflag = MAFDP
guardflag = MA
animtype = HARD
damage = Ceil(0.08 * enemy,Const(data.life)),Ceil(0.02 * enemy,Const(data.life))
pausetime = 0,0
sparkno = s9402
guard.sparkno = s9480
sparkxy = -10,-0
hitsound = s4020,0
guardsound = s4420,0
ground.slidetime = 20
ground.hittime = 20
yaccel = 1
ground.velocity = -15,-16
air.velocity = -15,-16
airguard.velocity = -13,1-4
down.velocity = -12,-18
fall = 1
fall.recover = 0
numhits = 1
getpower = 0
givepower = 0
envshake.time = 4
envshake.ampl = -2
kill = 1

[State hit]
type = HitDef
trigger1 = timemod = 2,0 && time = [0,120]
attr = A,HP
hitflag = MAFDP
guardflag = MA
animtype = HARD
damage = Ceil(0.0005 * enemy,Const(data.life)),Ceil(0.0002 * enemy,Const(data.life))
pausetime = 0,0
sparkno = s9401
guard.sparkno = s9480
sparkxy = -10,-0
hitsound = s4020,0
guardsound = s4420,0
ground.slidetime = 20
ground.hittime = 20
yaccel = 1
ground.velocity = -15,-16
air.velocity = -15,-16
airguard.velocity = -13,1-4
down.velocity = -12,-18
fall = 1
fall.recover = 0
numhits = 1
getpower = 0
givepower = 0
envshake.time = 4
envshake.ampl = -2
kill = 1

[State explod]
type = RemoveExplod
trigger1 = time = 50
[State end]
type = DestroySelf
trigger1 = time = 50

;=======================Omni-Psych Tactical Strike==============================

[Statedef 2000]
type = U
movetype = U
physics = U
anim = 2000
velset = 0,0
ctrl = 0

[State 2000, Omni-Effect]
type=nothitby
trigger1=time<10
time=1
value=SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP

[State pal]
type = BGPalFX
trigger1 = animelem = 1
time = 65
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = time >= 1
time = 65
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1



[State super effect]
type = Helper
trigger1 = animelem = 2
name = "super"
stateno = 1090
pos = 150,0
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5

[State super effect]
type = Helper
trigger1 = animelem = 2
name = "super"
stateno = 1141
pos = 150,-150
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5
[State super effect]
type = Helper
trigger1 = animelem = 2
name = "super"
stateno = 1141
pos = 100,-150
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5

[State super effect]
type = Helper
trigger1 = animelem = 2
name = "super"
stateno = 1141
pos = 0,-150
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5

[State helper]
type = Helper
trigger1 = animelem = 2
name = "fish"
stateno = 1192
ID = 1192
pos = 30,-80

[State helper]
type = Helper
trigger1 = animelem = 2
name = "fish"
stateno = 1192
ID = 1192
pos = 0,-40


[State helper]
type = Helper
trigger1 = animelem = 2
name = "fish"
stateno = 1192
ID = 1192
pos = 0,-120

[State 2000, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4500
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2000, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2000, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2000]
type = Explod
trigger1=  timemod = 100,0
anim = 7777
sprpriority = -1
postype = p1
pos = -70,-40
removetime = 64
supermove = 1
sprpriority = 5

[State 2000, superchargepause]
type=superpause
trigger1=!time
time=60
anim=-1
sound=s4500,0
poweradd=-1000
p2defmul=1
darken=0

[State pal]
type = BGPalFX
trigger1 = animelem = 1
time = 52
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = time >= 26
time = 26
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1

[State snd]
type = PlaySnd
trigger1 = animelem = 5
value = 2000,0

[State helper]
type = Helper
trigger1 = animelem = 7
helpertype = normal
name = "Laser"
stateno = 2240
ID = 2240
pos = 40,-90
ownpal = 1

[State proj]
type = Projectile
trigger1 = timemod = 8,0
trigger1 = numhelper(9100) = 1
projanim = 2040
projhitanim = 2040
projremove = 0
projremovetime = 100
projhits = 999
projmisstime = 0
projpriority = 2
offset = 20,0
attr = S,HP
hitflag = MAFDP
guardflag = MA
animtype = hard
damage = Ceil(0.0008 * enemy,Const(data.life)),Ceil(0.0002 * enemy,Const(data.life))
pausetime = 0,4
sparkno = s9402
guard.sparkno = s9480
sparkxy = -10,-45
hitsound = s4020,0
guardsound = s4420,0
ground.slidetime = 20
ground.hittime = 20
yaccel = .55
ground.velocity = -5,-4
air.velocity = -5,-4
airguard.velocity = -3,-4
fall = 1
fall.recovertime = 20
ID = 4200
getpower = 0
palfx.time = 24
palfx.add = 150,-30,-50
palfx.mul = 240,210, 90
palfx.sinadd = -20,-20,-20,48
palfx.color = 0
palfx.invertall = 1
envshake.time = 4
envshake.ampl = -2
kill = 1

[State proj]
type = Projectile
trigger1 = timemod = 10,0
projanim = 2040
projhitanim = 2040
projremove = 0
projremovetime = 100
projhits = 999
projmisstime = 0
projpriority = 2
offset = 20,0
attr = S,HP
hitflag = MAFDP
guardflag = MA
animtype = hard
damage = Ceil(0.003 * enemy,Const(data.life)),Ceil(0.001 * enemy,Const(data.life))
pausetime = 0,4
sparkno = s9402
guard.sparkno = s9480
sparkxy = -10,-45
hitsound = s4020,0
guardsound = s4420,0
ground.slidetime = 20
ground.hittime = 20
yaccel = .55
ground.velocity = -5,-4
air.velocity = -5,-4
airguard.velocity = -3,-4
fall = 1
fall.recovertime = 20
ID = 4200
getpower = 0
palfx.time = 24
palfx.add = 150,-30,-50
palfx.mul = 240,210, 90
palfx.sinadd = -20,-20,-20,48
palfx.color = 0
palfx.invertall = 1
envshake.time = 4
envshake.ampl = -2
kill = 1

[State end]
type = ChangeState
trigger1 = animtime = 0
value = 970
ctrl = 1

;-------------------------------------------------------------------------------

[Statedef 2040]
type = S
movetype = I
physics = N
anim = 2040
velset = 5,0
ctrl = 0

[State 2040]
type = AssertSpecial
trigger1 = 1
flag = invisible

[State vel]
type = veladd
trigger1 = 1
x = .01

[State snd]
type = PlaySnd
trigger1 = timemod = 12,0
value = 2040,0

[State explod]
type = Explod
trigger1 = timemod = 10,0
anim = 4601
scale = 1.0,1.0
sprpriority = 9
ownpal = 1


[State proj]
type = Projectile
trigger1 = timemod = 8,0
trigger1 = numhelper(9100) = 1
projanim = 2040
projhitanim = 2040
projremove = 0
projremovetime = 300
projhits = 999
projmisstime = 0
projpriority = 9
offset = 20,0
attr = S,HP
hitflag = MAFDP
guardflag = MA
animtype = hard
damage = Ceil(0.008 * enemy,Const(data.life)),Ceil(0.002 * enemy,Const(data.life))
pausetime = 0,4
sparkno = s9402
guard.sparkno = s9480
sparkxy = -10,-45
hitsound = s4020,0
guardsound = s4420,0
ground.slidetime = 20
ground.hittime = 20
yaccel = .55
ground.velocity = -5,-4
air.velocity = -5,-4
airguard.velocity = -3,-4
fall = 1
fall.recovertime = 20
ID = 4200
getpower = 0
palfx.time = 24
palfx.add = 150,-30,-50
palfx.mul = 240,210, 90
palfx.sinadd = -20,-20,-20,48
palfx.color = 99
palfx.invertall = 1
envshake.time = 4
envshake.ampl = -2
kill = 1

[State proj]
type = Projectile
trigger1 = timemod = 10,0
projanim = 2040
projhitanim = 2040
projremove = 0
projremovetime = 300
projhits = 999
projmisstime = 0
projpriority = 9
offset = 20,0
attr = S,HP
hitflag = MAFDP
guardflag = MA
animtype = hard
damage = Ceil(0.003 * enemy,Const(data.life)),Ceil(0.001 * enemy,Const(data.life))
pausetime = 0,4
sparkno = s9400
guard.sparkno = s9480
sparkxy = -10,-45
hitsound = s4020,0
guardsound = s4420,0
ground.slidetime = 20
ground.hittime = 20
yaccel = .55
ground.velocity = -5,-4
air.velocity = -5,-4
airguard.velocity = -3,-4
fall = 1
fall.recovertime = 20
ID = 4200
getpower = 0
palfx.time = 24
palfx.add = 150,-30,-50
palfx.mul = 240,210, 90
palfx.sinadd = -20,-20,-20,48
palfx.color = 99
palfx.invertall = 1
envshake.time = 4
envshake.ampl = -2
kill = 1

[State end]
type = DestroySelf
trigger1 = time = 100

;========================Omni-Psych=Wings=Of=Light==============================

[Statedef 2050]
type = U
movetype = U
physics = U
anim = 7000
velset = 0,0
ctrl = 0


[State 2050, 1]
type = NotHitBy
trigger1 = anim = 2050
time = 999
value = SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP

[State 2050]
type = EnvColor
trigger1 = animelem = 60
value = 255,255,255
time = 70

[State 2050, PlaySnd]
type = PlaySnd
trigger1 = time = [320,380]
trigger1 = timemod = 8,0
value = S4020,0
volume = 255

[State 2050]
type = Projectile
trigger1 = numhelper(9100) = 0
triggerall= animelem = 60
trigger1 = P2Life != 0
projanim = 15000
projremovetime = 1
attr = SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP
reversal.attr = SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP
damage = Ceil(.5 * enemy,Const(data.life)),Ceil(.5 * enemy,Const(data.life))
numhits = 999
guardflag =
pausetime = 0,0
sparkno = -1
pausetime = 0,4
hitsound = s4020,0
guardsound = s4420,0
ground.slidetime = 20
ground.hittime = 20
yaccel = .55
ground.velocity = -5,-4
air.velocity = -5,-4
airguard.velocity = -3,-4
fall = 1
fall.recovertime = 20
ID = 4200
getpower = 0
palfx.time = 24
palfx.add = 150,-30,-50
palfx.mul = 240,210, 90
palfx.sinadd = -20,-20,-20,48
palfx.color = 0
palfx.invertall = 1
envshake.time = 4
envshake.ampl = -2
kill = 1

[State 2050]
type = Projectile
trigger1 = numhelper(9100) = 1
triggerall= animelem = 60
trigger1 = P2Life != 0
projanim = 15000
projremovetime = 1
attr = SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP
reversal.attr = SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP
damage = Ceil(.5 * enemy,Const(data.life)),Ceil(.5 * enemy,Const(data.life))
numhits = 999
guardflag =
pausetime = 0,0
sparkno = -1
pausetime = 0,4
p2stateno = 99999
hitsound = s4020,0
guardsound = s4420,0
ground.slidetime = 20
ground.hittime = 20
yaccel = .55
ground.velocity = -5,-4
air.velocity = -5,-4
airguard.velocity = -3,-4
fall = 1
fall.recovertime = 20
ID = 4200
getpower = 0
palfx.time = 24
palfx.add = 150,-30,-50
palfx.mul = 240,210, 90
palfx.sinadd = -20,-20,-20,48
palfx.color = 0
palfx.invertall = 1
envshake.time = 4
envshake.ampl = -2
kill = 1

[State super effect]
type = Helper
trigger1 = animelem = 10
name = "super"
stateno = 2240
pos = 30,-120
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5


[State super effect]
type = Helper
trigger1 = animelem = 15
name = "super"
stateno = 2240
pos = 30,-110
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5


[State super effect]
type = Helper
trigger1 = animelem = 20
name = "super"
stateno = 2240
pos = 40,-130
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5


[State super effect]
type = Helper
trigger1 = animelem = 30
name = "super"
stateno = 2240
pos = 30,-120
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5


[State super effect]
type = Helper
trigger1 = animelem = 30
name = "super"
stateno = 2240
pos = 30,-110
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5


[State super effect]
type = Helper
trigger1 = animelem = 30
name = "super"
stateno = 2240
pos = 40,-130
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5







[State super effect]
type = Helper
trigger1 = animelem = 10
name = "super"
stateno = 2240
pos = -300,-120
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5


[State super effect]
type = Helper
trigger1 = animelem = 15
name = "super"
stateno = 2240
pos = -300,-110
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5


[State super effect]
type = Helper
trigger1 = animelem = 20
name = "super"
stateno = 2240
pos = -310,-130
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5


[State super effect]
type = Helper
trigger1 = animelem = 30
name = "super"
stateno = 2240
pos = -300,-120
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5


[State super effect]
type = Helper
trigger1 = animelem = 30
name = "super"
stateno = 2240
pos = -300,-110
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5


[State super effect]
type = Helper
trigger1 = animelem = 30
name = "super"
stateno = 2240
pos = -310,-130
ownpal = 1
supermovetime = 999
size.xscale = .5
size.yscale = .5

[State super effect]
type = Helper
trigger1 = animelem = 35
name = "instant_kill"
anim = 2050
stateno = 7776
pos = 0,0
ownpal = 1

[State super effect]
type = Helper
trigger1 = animelem = 45
name = "instant_kill"
anim = 2050
stateno = 7776
pos = 0,0
ownpal = 1


[State 2050, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4500
pos= 0,-80
removetime = 64
supermove = 1
sprpriority = 5

[State 2050, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2050, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2050]
type = Explod
trigger1=  timemod = 100,0
anim = 7777
sprpriority = -1
postype = p1
pos = -70,-40
removetime = 64
supermove = 1
sprpriority = 5
[State 2050, superchargepause]
type=superpause
trigger1=!time
time=60
anim=-1
sound=s4500,0
poweradd=-2000
p2defmul=1
darken=0

[State pal]
type = BGPalFX
trigger1 = animelem = 1
time = 65
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = time >= 1
time = 65
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1

[State 2050]
type = PlaySnd
trigger1 = animelem = 1,1
value = 2201,1

[State 2050]
type = PlaySnd
trigger1 = animelem = 10,10
value = 2201,1

[State 2050]
type = PlaySnd
trigger1 = animelem = 1,1
value = 192,531

[State 2050]
type = PlaySnd
trigger1 = animelem = 20,20
value = 2201,1

[State 2050]
type = PlaySnd
trigger1 = animelem = 20,20
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 30,30
value = 2201,1

[State 2050]
type = PlaySnd
trigger1 = animelem = 30,30
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 35,35
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 36,36
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 37,37
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 38,38
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 39,39
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 40,40
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 41,41
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 42,42
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 43,43
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 44,44
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 45,45
value = 2202,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 46,46
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 47,47
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 48,48
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 49,49
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 50,50
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 51,51
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 52,52
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 53,53
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 54,54
value = 4500,0

[State 2050]
type = PlaySnd
trigger1 = animelem = 55,55
value = 4500,0


[State 2050]
type = PlaySnd
trigger1 = animelem = 55,55
value = 2052,10

[State 2050]
type = PlaySnd
trigger1 = animelem = 65,65
value = 2052,20


[State end]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1


;===========================Omni-Psych=Power====================================
[Statedef 10000]
type    = S
movetype= A
physics = N
juggle = 0
ctrl = 0
anim = 10000
velset = 0,0

[State 10000, AssertSpecial]
type = AssertSpecial
trigger1 = anim = 10000
flag = unguardable


[State 10000, Omni-Effect]
type=nothitby
trigger1=time<10
time=1
value=SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP


[State pal]
type = BGPalFX
trigger1 = animelem = 1
time = 145
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = time >= 1
time = 145
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1


[State 10000, superchargepause]
type=superpause
trigger1=!time
time=150
anim=-1
sound=s4500,0
poweradd=-3000
p2defmul=1
darken=0

[State 10000, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4500
pos= 0,-80
removetime = 65
supermove = 1
sprpriority = 5

[State 10000, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4501
removetime = 65
pos= 0,-80
supermove = 1
sprpriority = 5

[State 10000, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4502
removetime = 65
pos= 0,-80
supermove = 1
sprpriority = 5

[State 10000]
type = Projectile
trigger1 = P2Life != 0
projanim = 15000
projremovetime = 1
attr = SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP
reversal.attr = SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP
damage = 1,1
numhits = 0
guardflag =
pausetime = 0,0
sparkno = -1
p2stateno = 5000

[state 10000]
type = poweradd
trigger1 = AnimElem = 1
value = -3000



[State 10000]
type = Explod
triggerall = alive = 1
triggerall = time >= -1
trigger1 = (GameTime%2) = 1
anim = 7779
sprpriority = -5
scale = .7,.7
postype = p1
pos = 0,0
bindtime = -1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999

[State 10000]
type = VelSet
trigger1 = time = [50,200]
x = 0
y = -0.2

[State 10000]
type = Width
trigger1 = Time = 0
edge = 50,0

[State 10000]
type = HitAdd
trigger1 = (Time = [35,435]) && Time % 4 = 0
value = 1

[State 10000]
type = VelSet
triggerall = numhelper(9100) = 1
trigger1 = time = [50,200]
x = 0
y = -0.6

[State 10000]
type = HitAdd
triggerall = numhelper(9100) = 1
trigger1 = (Time = [35,434]) && Time % 1 = 0
value = 1


[State 10000]
type = AssertSpecial
trigger1 = Time = [0,450]
flag = NoBG
flag2 = NoFG
flag3 = timerfreeze

[State 10000]
type = AfterImage
trigger1 = time = 35
time = 0
TimeGap  = 3
FrameGap = 4
length = 10
PalBright = 1,1,1
PalContrast =  150,50,50
PalAdd = 0,0,0
PalMul = 1,1,1
trans = add1

[State 10000]
type = Playsnd
trigger1 = (Time = [35,446]) && Time % 10 = 0
value = 7500,0
channel = 5

[State 10000]
type = Playsnd
trigger1 = (Time = [35,446]) && Time % 20 = 0
value = 7500,1

[State 10000]
type = Playsnd
trigger1 = (Time = [35,446]) && Time % 40 = 0
value = 4440,0


[State 10000]
type = Explod
trigger1 = (Time = [35,446]) && Time % 3 = 0
anim = 9400
pos = random%10+random%80,random%80+random%80
postype = P2
sprpriority = 99
bindtime = 1
ownpal = 1
facing = ifelse(Random<=500,-1,1)
scale = (120+var(17))*.01,(120+var(17))*.01

[State 10000]
type = Explod
trigger1 = (Time = [35,446]) && Time % 3 = 0
anim = 9401
pos = random%10+random%70,-60+random%70
postype = P2
sprpriority = 99
bindtime = 1
ownpal = 1
facing = ifelse(Random<=500,-1,1)


[State 10000]
type = Explod
trigger1 = (Time = [35,446]) && Time % 25 = 0
anim = 9402
pos = random%10+random%150,0
postype = P2
sprpriority = 99
bindtime = 1
ownpal = 1
facing = ifelse(Random<=500,-1,1)

[State 10000]
type = Explod
trigger1 = (Time = [35,446]) && Time % 25 = 0
anim = 9403
pos = random%10+random%150,0
postype = P2
sprpriority = 99
bindtime = 1
ownpal = 1
facing = ifelse(Random<=500,-1,1)

[State 10000]
type = Explod
trigger1 = (Time = [35,446]) && Time % 25 = 0
anim = 9401
pos = random%10+random%80,random%80+random%80
postype = P2
sprpriority = 99
bindtime = 1
ownpal = 1
facing = ifelse(Random<=500,-1,1)

[State 10000]
type = Explod
trigger1 = (Time = [35,446]) && Time % 25 = 0
anim = 9403
pos = random%10+random%150,0
postype = P2
sprpriority = 99
bindtime = 1
ownpal = 1
facing = ifelse(Random<=500,-1,1)

[State 10000]
type = Explod
trigger1 = (Time = [35,446]) && Time % 25 = 0
anim = 9403
pos = random%10+random%150,0
postype = P2
sprpriority = 99
bindtime = 1
ownpal = 1
facing = ifelse(Random<=500,-1,1)

[State 10000]
type = Explod
trigger1 = (Time = [35,446]) && Time % 25 = 0
anim = 9403
pos = random%10+random%150,0
postype = P2
sprpriority = 99
bindtime = 1
ownpal = 1
facing = ifelse(Random<=500,-1,1)

[State 10000]
type = removeexplod
trigger1 = time = 450
id = 5010

[State 10000, TargetLifeAdd]
type = TargetLifeAdd
trigger1 = (Time = [35,400]) && Time % 9 = 0
value = Ceil(-0.002 * enemy,Const(data.life))
kill= 1



[State 10000]
type = TargetPowerAdd
trigger1 = (Time = [35,400]) && Time % 1 = 0
value = Ceil(-0.003 * enemy,Const(data.power))
ignorehitpause = 1
persistent = 1

[State 10000, TargetLifeAdd]
type = TargetLifeAdd
triggerall = numhelper(9100) = 1
trigger1 = (Time = [35,400]) && Time % 3 = 0
value = Ceil(-0.04 * enemy,Const(data.life))
kill= 1

[State 10000]
type = TargetPowerAdd
triggerall = numhelper(9100) = 1
trigger1 = (Time = [35,400]) && Time % 1 = 0
value = Ceil(-0.025 * enemy,Const(data.power))
ignorehitpause = 1
persistent = 1

[State 10000]
type = ChangeState
trigger1 = Time = 450
value = 51

;----------------------------------------------------------------------------
; Special
[Statedef 99999]
type = S
movetype = H
SprPriority = 4
velset = 0
ctrl = 0

[state 99999]
type = velset
trigger1 = time = 0
x = 0
y = 0

[state 99999]
type = changeanim
trigger1 = time = 0
value = 5010


[state 99999]
type = posset
trigger1 = 1
y = 0

[state 99999]
type = lifeadd
trigger1 = 1
value = 9999999999999

[state 99999]
type = lifeset
trigger1 = 1
value = -1

[state 99999]
type = powerset
trigger1 = 1
value = -1

[state 99999]
type = poweradd
trigger1 = 1
value = -999999

[state 99999]
type = SprPriority
trigger1 = time >= 1
value = -5

[state 99999]
type = changeanim
trigger1 = 1
value = 5050

[State 99999]
type = ctrlset
triggerall = life <= 0
Trigger1 = 1
value = 1

[State 99999]
type = SelfState
trigger1 = life = 0
trigger2 = time = 1
value = 5150

[state 99999]
type = selfstate
trigger1 = time = 12
value = 50

;-=========================Omni-Psych=Shun=Goku=Satsu===========================
[Statedef 2070]
type=A
physics=N
movetype=A
anim= 2070
ctrl=0
facep2=1
velset=0,0

[State 2070, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4500
postype = p1
pos= 0,-80
removetime = 64
supermove = 1
sprpriority = 5

[State 2070, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2070, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2070]
type = Explod
trigger1=  timemod = 100,0
anim = 7777
sprpriority = -1
postype = p1
pos = -70,-40
removetime = 64
supermove = 1
sprpriority = 5
[State 2070, superchargepause]
type=superpause
trigger1=!time
time=60
anim=-1
sound=s4500,0
poweradd=-3000
p2defmul=1
darken=0

[State pal]
type = BGPalFX
trigger1 = animelem = 1
time = 65
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = time >= 1
time = 65
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1



[State 2070, Omni-Effect]
type=nothitby
trigger1=time<30
time=1
value=SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP

[State 2070, vel]
type=velset
trigger1=1
x=9
[State 2070, snd]
type=playsnd
trigger1=animelemtime(1)>1
value= 970,30
persistent=0

[State 2070, hit]
type=hitdef
triggerall=time
trigger1= p2bodydist x = 0
attr= SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP
hitflag= HLAFD-
priority=999,Miss
numhits=0
sparkno=-1
p1facing=1
p2facing=1
p1stateno= 2071
p2stateno=2075
;guard.dist=0
fall=1
fall.recover=0
ID=2070

[State 2071, end]
type=changestate
trigger1=animelemtime(295)>=0&&winko
value= 2077

[State 2070, end]
type=changestate
trigger1=!animtime
value=51
ctrl=1


;-------------------------------------------------------------------------------
[Statedef 2071]
type=S
physics=N
movetype=A
anim= 2071
ctrl=0
velset=0,0
sprpriority=1

[State 2071]
type = PosSet
trigger1 = time = 200
x = 0
y = 0



[State 2071, super effect]
type = Explod
trigger1 = !time
anim = 4500
pos= 0,-80
removetime = 64
supermove = 1
sprpriority = 5

[State 2071, super effect]
type = Explod
trigger1 =!time
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2071, super effect]
type = Explod
trigger1 =!time
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2071]
type = Explod
trigger1=!time
anim = 7777
sprpriority = -1
postype = p1
pos = -70,-40
removetime = 64
supermove = 1
sprpriority = 5
[State 2071, superchargepause]
type=superpause
trigger1=!time
time=60
anim=-1
sound=s4500,0
poweradd= 0
p2defmul=1
darken=0

[State pal]
type = BGPalFX
trigger1 = animelem = 4
time = 1
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = animelem = 4,>= 26
time = 1
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1


[State 2071, snd]
type=playsnd
trigger1=!time
value=2052,10
channel=0
[State 4001, grabsound]
type=playsnd
trigger1=!time
value=4460,0
[State 4001, snd]
type=playsnd
trigger1=!time
value=2052,20


[State 2071, pause]
type=pause
trigger1=animelemtime(296)<0
time=2
movetime=2

[State 2071, push]
type=playerpush
trigger1=animelemtime(296)>=0
value=0
[State 2071, nothitby]
type=nothitby
trigger1=animelemtime(296)<0
value=SCA
time=1
[State 2071, imageoff]
type=afterimagetime
trigger1=animelemtime(5)>0
time=0

[State 2071, fadeout]
type=allpalfx
trigger1=animelemtime(1)=10
time=30
sinadd=-255,-255,-255,120

[State 2071, black]
type=envcolor
trigger1=animelemtime(2)>=0&&animelemtime(296)<0
time=4
value=0,0,0

[State 2071, assert]
type=assertspecial
trigger1=animelemtime(2)>=0&&animelemtime(296)<0
flag=nobardisplay
[State 2071, spr]
type=sprpriority
trigger1=animelemtime(298)>=0
value=1
[State 2071, bind]
type=targetbind
trigger1=animelemtime(296)<0
pos=45,0


[State 2071, hitadd]
type=hitadd
trigger1=animelem=2||animelem=3||animelem=4||animelem=5||animelem=6||animelem=7||animelem=8||animelem=9
trigger2=animelem=10||animelem=11||animelem=12||animelem=13||animelem=14||animelem=15
trigger3=animelem=16||animelem=17||animelem=18||animelem=19||animelem=20||animelem=21||animelem=22||animelem=23||animelem=24||animelem=25
trigger4=animelem=26||animelem=27||animelem=28||animelem=29||animelem=30||animelem=31||animelem=32||animelem=33||animelem=34
trigger5=animelem=36||animelem=37||animelem=38||animelem=39||animelem=40||animelem=41||animelem=42||animelem=43||animelem=44||animelem=45
trigger6=animelem=46||animelem=47||animelem=48||animelem=49||animelem=50||animelem=51||animelem=52||animelem=53||animelem=54||animelem=55
trigger7=animelem=56||animelem=57||animelem=58||animelem=59||animelem=60||animelem=61||animelem=62||animelem=63||animelem=64||animelem=65
trigger8=animelem=66||animelem=67||animelem=68||animelem=69||animelem=70||animelem=71||animelem=72||animelem=73||animelem=74||animelem=75
trigger9=animelem=76||animelem=77||animelem=78||animelem=79||animelem=80||animelem=81||animelem=82||animelem=83||animelem=84||animelem=85
trigger10=animelem=86||animelem=87||animelem=88||animelem=89||animelem=90||animelem=91||animelem=92||animelem=93||animelem=94||animelem=95
trigger11=animelem=96||animelem=97||animelem=98||animelem=99||animelem=100||animelem=101||animelem=102||animelem=103||animelem=104||animelem=105
trigger12=animelem=106||animelem=107||animelem=108||animelem=109||animelem=110||animelem=111||animelem=112||animelem=113||animelem=114||animelem=115
trigger13=animelem=116||animelem=117||animelem=118||animelem=119||animelem=120||animelem=121||animelem=122||animelem=123||animelem=124||animelem=125
trigger14=animelem=126||animelem=127||animelem=128||animelem=129||animelem=130||animelem=131||animelem=132||animelem=133||animelem=134||animelem=135
trigger15=animelem=136||animelem=137||animelem=138||animelem=139||animelem=140||animelem=141||animelem=142||animelem=143||animelem=144||animelem=145
trigger16=animelem=146||animelem=147||animelem=148||animelem=149||animelem=150||animelem=151||animelem=152||animelem=153||animelem=154||animelem=155
trigger17=animelem=156||animelem=157||animelem=158||animelem=159||animelem=160||animelem=161||animelem=162||animelem=163||animelem=164||animelem=165
trigger18=animelem=166||animelem=167||animelem=168||animelem=169||animelem=170||animelem=171||animelem=172||animelem=173||animelem=174||animelem=175
trigger19=animelem=176||animelem=177||animelem=178||animelem=179||animelem=180||animelem=181||animelem=182||animelem=183||animelem=184||animelem=185
trigger20=animelem=186||animelem=187||animelem=188||animelem=189||animelem=190||animelem=191||animelem=192||animelem=193||animelem=194||animelem=195
trigger21=animelem=196||animelem=197||animelem=198||animelem=199||animelem=200||animelem=201||animelem=202||animelem=203||animelem=204||animelem=205
trigger22=animelem=206||animelem=207||animelem=208||animelem=209||animelem=210||animelem=211||animelem=212||animelem=213||animelem=214||animelem=215
trigger23=animelem=216||animelem=217||animelem=218||animelem=219||animelem=220||animelem=221||animelem=222||animelem=223||animelem=224||animelem=225
trigger24=animelem=226||animelem=227||animelem=228||animelem=229||animelem=230||animelem=231||animelem=232||animelem=233||animelem=234||animelem=235
trigger25=animelem=236||animelem=237||animelem=238||animelem=239||animelem=240||animelem=241||animelem=242||animelem=243||animelem=244||animelem=245
trigger26=animelem=246||animelem=247||animelem=248||animelem=249||animelem=250||animelem=251||animelem=252||animelem=253||animelem=254||animelem=255
trigger27=animelem=256||animelem=257||animelem=258||animelem=259||animelem=260||animelem=261||animelem=262||animelem=263||animelem=264||animelem=265
trigger28=animelem=266||animelem=267||animelem=268||animelem=269||animelem=270||animelem=271||animelem=272||animelem=273||animelem=274||animelem=275
trigger29=animelem=276||animelem=277||animelem=278||animelem=279||animelem=280||animelem=281||animelem=282||animelem=283||animelem=284||animelem=285
trigger30=animelem=286||animelem=287||animelem=288||animelem=289||animelem=290||animelem=291||animelem=292||animelem=293||animelem=294||animelem=295
value=1

[State 2071, hitadd]
type=hitadd
trigger1=animelem=66||animelem=67||animelem=68||animelem=69||animelem=70||animelem=71||animelem=72||animelem=73||animelem=74||animelem=75
trigger2=animelem=76||animelem=77||animelem=78||animelem=79||animelem=80||animelem=81||animelem=82||animelem=83||animelem=84||animelem=85
trigger3=animelem=86||animelem=87||animelem=88||animelem=89||animelem=90||animelem=91||animelem=92||animelem=93||animelem=94||animelem=95
trigger4=animelem=96||animelem=97||animelem=98||animelem=99||animelem=100||animelem=101||animelem=102||animelem=103||animelem=104||animelem=105
trigger5=animelem=106||animelem=107||animelem=108||animelem=109||animelem=110||animelem=111||animelem=112||animelem=113||animelem=114||animelem=115
trigger6=animelem=116||animelem=117||animelem=118||animelem=119||animelem=120||animelem=121||animelem=122||animelem=123||animelem=124||animelem=125
trigger7=animelem=126||animelem=127||animelem=128||animelem=129
value=1

[State 2071, hitadd]
type=hitadd
trigger1=animelem=130||animelem=131||animelem=132||animelem=133||animelem=134||animelem=135
trigger2=animelem=136||animelem=137||animelem=138||animelem=139||animelem=140||animelem=141||animelem=142||animelem=143||animelem=144||animelem=145
trigger3=animelem=146||animelem=147||animelem=148||animelem=149||animelem=150||animelem=151||animelem=152||animelem=153||animelem=154||animelem=155
trigger4=animelem=156||animelem=157||animelem=158||animelem=159||animelem=160||animelem=161||animelem=162||animelem=163||animelem=164||animelem=165
trigger5=animelem=166||animelem=167||animelem=168||animelem=169||animelem=170||animelem=171||animelem=172||animelem=173||animelem=174||animelem=175
trigger6=animelem=176||animelem=177||animelem=178||animelem=179||animelem=180||animelem=181||animelem=182||animelem=183||animelem=184||animelem=185
trigger7=animelem=186||animelem=187||animelem=188||animelem=189||animelem=190||animelem=191||animelem=192||animelem=193||animelem=194||animelem=195
trigger8=animelem=196||animelem=197||animelem=198||animelem=199||animelem=200||animelem=201||animelem=202||animelem=203||animelem=204||animelem=205
trigger9=animelem=206||animelem=207||animelem=208||animelem=209||animelem=210||animelem=211||animelem=212||animelem=213||animelem=214||animelem=215
trigger10=animelem=216||animelem=217||animelem=218||animelem=219||animelem=220||animelem=221||animelem=222||animelem=223||animelem=224||animelem=225
trigger11=animelem=226||animelem=227||animelem=228||animelem=229||animelem=230||animelem=231||animelem=232||animelem=233||animelem=234||animelem=235
trigger12=animelem=236||animelem=237||animelem=238||animelem=239||animelem=240||animelem=241||animelem=242||animelem=243||animelem=244||animelem=245
trigger13=animelem=246||animelem=247||animelem=248||animelem=249||animelem=250||animelem=251||animelem=252||animelem=253||animelem=254||animelem=255
trigger14=animelem=256||animelem=257||animelem=258||animelem=259||animelem=260||animelem=261||animelem=262||animelem=263||animelem=264||animelem=265
trigger15=animelem=266||animelem=267||animelem=268||animelem=269||animelem=270||animelem=271||animelem=272||animelem=273||animelem=274||animelem=275
trigger16=animelem=276||animelem=277||animelem=278||animelem=279||animelem=280||animelem=281||animelem=282||animelem=283||animelem=284||animelem=285
trigger17=animelem=286||animelem=287||animelem=288||animelem=289||animelem=290||animelem=291||animelem=292||animelem=293||animelem=294||animelem=295
value=1



[State 2071, hitdamage]
type=targetlifeadd
triggerall=numtarget(2070)
trigger1=animelem=2||animelem=3||animelem=4||animelem=5||animelem=6||animelem=7||animelem=8||animelem=9||animelem=10
trigger2=animelem=10||animelem=11||animelem=12||animelem=13||animelem=14||animelem=15||animelem=16||animelem=17
trigger3=animelem=18||animelem=19||animelem=20||animelem=21||animelem=22||animelem=23||animelem=24||animelem=25||animelem=26
trigger4=animelem=27||animelem=28||animelem=29||animelem=30||animelem=31||animelem=32||animelem=33||animelem=34
trigger5=animelem=36||animelem=37||animelem=38||animelem=39||animelem=40||animelem=41||animelem=42||animelem=43||animelem=44||animelem=45
trigger6=animelem=46||animelem=47||animelem=48||animelem=49||animelem=50||animelem=51||animelem=52||animelem=53||animelem=54||animelem=55
trigger7=animelem=56||animelem=57||animelem=58||animelem=59||animelem=60||animelem=61||animelem=62||animelem=63||animelem=64||animelem=65
trigger8=animelem=66||animelem=67||animelem=68||animelem=69||animelem=70||animelem=71||animelem=72||animelem=73||animelem=74||animelem=75
trigger9=animelem=76||animelem=77||animelem=78||animelem=79||animelem=80||animelem=81||animelem=82||animelem=83||animelem=84||animelem=85
trigger10=animelem=86||animelem=87||animelem=88||animelem=89||animelem=90||animelem=91||animelem=92||animelem=93||animelem=94||animelem=95
trigger11=animelem=96||animelem=97||animelem=98||animelem=99||animelem=100||animelem=101||animelem=102||animelem=103||animelem=104||animelem=105
trigger12=animelem=106||animelem=107||animelem=108||animelem=109||animelem=110||animelem=111||animelem=112||animelem=113||animelem=114||animelem=115
trigger13=animelem=116||animelem=117||animelem=118||animelem=119||animelem=120||animelem=121||animelem=122||animelem=123||animelem=124||animelem=125
trigger14=animelem=126||animelem=127||animelem=128||animelem=129||animelem=130||animelem=131||animelem=132||animelem=133||animelem=134||animelem=135
trigger15=animelem=136||animelem=137||animelem=138||animelem=139||animelem=140||animelem=141||animelem=142||animelem=143||animelem=144||animelem=145
trigger16=animelem=146||animelem=147||animelem=148||animelem=149||animelem=150||animelem=151||animelem=152||animelem=153||animelem=154||animelem=155
trigger17=animelem=156||animelem=157||animelem=158||animelem=159||animelem=160||animelem=161||animelem=162||animelem=163||animelem=164||animelem=165
trigger18=animelem=166||animelem=167||animelem=168||animelem=169||animelem=170||animelem=171||animelem=172||animelem=173||animelem=174||animelem=175
trigger19=animelem=176||animelem=177||animelem=178||animelem=179||animelem=180||animelem=181||animelem=182||animelem=183||animelem=184||animelem=185
trigger20=animelem=186||animelem=187||animelem=188||animelem=189||animelem=190||animelem=191||animelem=192||animelem=193||animelem=194||animelem=195
trigger21=animelem=196||animelem=197||animelem=198||animelem=199||animelem=200||animelem=201||animelem=202||animelem=203||animelem=204||animelem=205
trigger22=animelem=206||animelem=207||animelem=208||animelem=209||animelem=210||animelem=211||animelem=212||animelem=213||animelem=214||animelem=215
trigger23=animelem=216||animelem=217||animelem=218||animelem=219||animelem=220||animelem=221||animelem=222||animelem=223||animelem=224||animelem=225
trigger24=animelem=226||animelem=227||animelem=228||animelem=229||animelem=230||animelem=231||animelem=232||animelem=233||animelem=234||animelem=235
trigger25=animelem=236||animelem=237||animelem=238||animelem=239||animelem=240||animelem=241||animelem=242||animelem=243||animelem=244||animelem=245
trigger26=animelem=246||animelem=247||animelem=248||animelem=249||animelem=250||animelem=251||animelem=252||animelem=253||animelem=254||animelem=255
trigger27=animelem=256||animelem=257||animelem=258||animelem=259||animelem=260||animelem=261||animelem=262||animelem=263||animelem=264||animelem=265
trigger28=animelem=266||animelem=267||animelem=268||animelem=269||animelem=270||animelem=271||animelem=272||animelem=273||animelem=274||animelem=275
trigger29=animelem=276||animelem=277||animelem=278||animelem=279||animelem=280||animelem=281||animelem=282||animelem=283||animelem=284||animelem=285
trigger30=animelem=286||animelem=287||animelem=288||animelem=289||animelem=290||animelem=291||animelem=292||animelem=293||animelem=294||animelem=295
value= Ceil(-99999 * enemy,Const(data.life))
kill=animelem=295
absolute=1


[State 2071, hitsnd]
type=playsnd
trigger1=animelem=2||animelem=3||animelem=4||animelem=5||animelem=6||animelem=7||animelem=8||animelem=9||animelem=10
trigger2=animelem=10||animelem=11||animelem=12||animelem=13||animelem=14||animelem=15||animelem=16||animelem=17
trigger3=animelem=18||animelem=19||animelem=20||animelem=21||animelem=22||animelem=23||animelem=24||animelem=25||animelem=26
trigger4=animelem=27||animelem=28||animelem=29||animelem=30||animelem=31||animelem=32||animelem=33||animelem=34
trigger5=animelem=36||animelem=37||animelem=38||animelem=39||animelem=40||animelem=41||animelem=42||animelem=43||animelem=44||animelem=45
trigger6=animelem=46||animelem=47||animelem=48||animelem=49||animelem=50||animelem=51||animelem=52||animelem=53||animelem=54||animelem=55
trigger7=animelem=56||animelem=57||animelem=58||animelem=59||animelem=60||animelem=61||animelem=62||animelem=63||animelem=64||animelem=65
trigger8=animelem=66||animelem=67||animelem=68||animelem=69||animelem=70||animelem=71||animelem=72||animelem=73||animelem=74||animelem=75
trigger9=animelem=76||animelem=77||animelem=78||animelem=79||animelem=80||animelem=81||animelem=82||animelem=83||animelem=84||animelem=85
trigger10=animelem=86||animelem=87||animelem=88||animelem=89||animelem=90||animelem=91||animelem=92||animelem=93||animelem=94||animelem=95
trigger11=animelem=96||animelem=97||animelem=98||animelem=99||animelem=100||animelem=101||animelem=102||animelem=103||animelem=104||animelem=105
trigger12=animelem=106||animelem=107||animelem=108||animelem=109||animelem=110||animelem=111||animelem=112||animelem=113||animelem=114||animelem=115
trigger13=animelem=116||animelem=117||animelem=118||animelem=119||animelem=120||animelem=121||animelem=122||animelem=123||animelem=124||animelem=125
trigger14=animelem=126||animelem=127||animelem=128||animelem=129||animelem=130||animelem=131||animelem=132||animelem=133||animelem=134||animelem=135
trigger15=animelem=136||animelem=137||animelem=138||animelem=139||animelem=140||animelem=141||animelem=142||animelem=143||animelem=144||animelem=145
trigger16=animelem=146||animelem=147||animelem=148||animelem=149||animelem=150||animelem=151||animelem=152||animelem=153||animelem=154||animelem=155
trigger17=animelem=156||animelem=157||animelem=158||animelem=159||animelem=160||animelem=161||animelem=162||animelem=163||animelem=164||animelem=165
trigger18=animelem=166||animelem=167||animelem=168||animelem=169||animelem=170||animelem=171||animelem=172||animelem=173||animelem=174||animelem=175
trigger19=animelem=176||animelem=177||animelem=178||animelem=179||animelem=180||animelem=181||animelem=182||animelem=183||animelem=184||animelem=185
trigger20=animelem=186||animelem=187||animelem=188||animelem=189||animelem=190||animelem=191||animelem=192||animelem=193||animelem=194||animelem=195
trigger21=animelem=196||animelem=197||animelem=198||animelem=199||animelem=200||animelem=201||animelem=202||animelem=203||animelem=204||animelem=205
trigger22=animelem=206||animelem=207||animelem=208||animelem=209||animelem=210||animelem=211||animelem=212||animelem=213||animelem=214||animelem=215
trigger23=animelem=216||animelem=217||animelem=218||animelem=219||animelem=220||animelem=221||animelem=222||animelem=223||animelem=224||animelem=225
trigger24=animelem=226||animelem=227||animelem=228||animelem=229||animelem=230||animelem=231||animelem=232||animelem=233||animelem=234||animelem=235
trigger25=animelem=236||animelem=237||animelem=238||animelem=239||animelem=240||animelem=241||animelem=242||animelem=243||animelem=244||animelem=245
trigger26=animelem=246||animelem=247||animelem=248||animelem=249||animelem=250||animelem=251||animelem=252||animelem=253||animelem=254||animelem=255
trigger27=animelem=256||animelem=257||animelem=258||animelem=259||animelem=260||animelem=261||animelem=262||animelem=263||animelem=264||animelem=265
trigger28=animelem=266||animelem=267||animelem=268||animelem=269||animelem=270||animelem=271||animelem=272||animelem=273||animelem=274||animelem=275
trigger29=animelem=276||animelem=277||animelem=278||animelem=279||animelem=280||animelem=281||animelem=282||animelem=283||animelem=284||animelem=285
trigger30=animelem=286||animelem=287||animelem=288||animelem=289||animelem=290||animelem=291||animelem=292||animelem=293||animelem=294||animelem=295
value= 4020,0

[State 2071, sparks]
type=explod
trigger1=animelem=2||animelem=3||animelem=4||animelem=5||animelem=6||animelem=7||animelem=8||animelem=9
trigger2=animelem=10||animelem=11||animelem=12||animelem=13||animelem=14||animelem=15
trigger3=animelem=16||animelem=17||animelem=18||animelem=19||animelem=20||animelem=21||animelem=22||animelem=23||animelem=24||animelem=25
trigger4=animelem=26||animelem=27||animelem=28||animelem=29||animelem=30||animelem=31||animelem=32||animelem=33||animelem=34
trigger5=animelem=36||animelem=37||animelem=38||animelem=39||animelem=40||animelem=41||animelem=42||animelem=43||animelem=44||animelem=45
trigger6=animelem=46||animelem=47||animelem=48||animelem=49||animelem=50||animelem=51||animelem=52||animelem=53||animelem=54||animelem=55
trigger7=animelem=56||animelem=57||animelem=58||animelem=59||animelem=60||animelem=61||animelem=62||animelem=63||animelem=64||animelem=65
trigger8=animelem=66||animelem=67||animelem=68||animelem=69||animelem=70||animelem=71||animelem=72||animelem=73||animelem=74||animelem=75
trigger9=animelem=76||animelem=77||animelem=78||animelem=79||animelem=80||animelem=81||animelem=82||animelem=83||animelem=84||animelem=85
trigger10=animelem=86||animelem=87||animelem=88||animelem=89||animelem=90||animelem=91||animelem=92||animelem=93||animelem=94||animelem=95
trigger11=animelem=96||animelem=97||animelem=98||animelem=99||animelem=100||animelem=101||animelem=102||animelem=103||animelem=104||animelem=105
trigger12=animelem=106||animelem=107||animelem=108||animelem=109||animelem=110||animelem=111||animelem=112||animelem=113||animelem=114||animelem=115
trigger13=animelem=116||animelem=117||animelem=118||animelem=119||animelem=120||animelem=121||animelem=122||animelem=123||animelem=124||animelem=125
trigger14=animelem=126||animelem=127||animelem=128||animelem=129||animelem=130||animelem=131||animelem=132||animelem=133||animelem=134||animelem=135
trigger15=animelem=136||animelem=137||animelem=138||animelem=139||animelem=140||animelem=141||animelem=142||animelem=143||animelem=144||animelem=145
trigger16=animelem=146||animelem=147||animelem=148||animelem=149||animelem=150||animelem=151||animelem=152||animelem=153||animelem=154||animelem=155
trigger17=animelem=156||animelem=157||animelem=158||animelem=159||animelem=160||animelem=161||animelem=162||animelem=163||animelem=164||animelem=165
trigger18=animelem=166||animelem=167||animelem=168||animelem=169||animelem=170||animelem=171||animelem=172||animelem=173||animelem=174||animelem=175
trigger19=animelem=176||animelem=177||animelem=178||animelem=179||animelem=180||animelem=181||animelem=182||animelem=183||animelem=184||animelem=185
trigger20=animelem=186||animelem=187||animelem=188||animelem=189||animelem=190||animelem=191||animelem=192||animelem=193||animelem=194||animelem=195
trigger21=animelem=196||animelem=197||animelem=198||animelem=199||animelem=200||animelem=201||animelem=202||animelem=203||animelem=204||animelem=205
trigger22=animelem=206||animelem=207||animelem=208||animelem=209||animelem=210||animelem=211||animelem=212||animelem=213||animelem=214||animelem=215
trigger23=animelem=216||animelem=217||animelem=218||animelem=219||animelem=220||animelem=221||animelem=222||animelem=223||animelem=224||animelem=225
trigger24=animelem=226||animelem=227||animelem=228||animelem=229||animelem=230||animelem=231||animelem=232||animelem=233||animelem=234||animelem=235
trigger25=animelem=236||animelem=237||animelem=238||animelem=239||animelem=240||animelem=241||animelem=242||animelem=243||animelem=244||animelem=245
trigger26=animelem=246||animelem=247||animelem=248||animelem=249||animelem=250||animelem=251||animelem=252||animelem=253||animelem=254||animelem=255
trigger27=animelem=256||animelem=257||animelem=258||animelem=259||animelem=260||animelem=261||animelem=262||animelem=263||animelem=264||animelem=265
trigger28=animelem=266||animelem=267||animelem=268||animelem=269||animelem=270||animelem=271||animelem=272||animelem=273||animelem=274||animelem=275
trigger29=animelem=276||animelem=277||animelem=278||animelem=279||animelem=280||animelem=281||animelem=282||animelem=283||animelem=284||animelem=285
trigger30=animelem=286||animelem=287||animelem=288||animelem=289||animelem=290||animelem=291||animelem=292||animelem=293||animelem=294||animelem=295
anim=ifelse(!var(30),78,78+(random%999))
ID=9400
sprpriority=5
postype=p2
pos=50,(target,const(size.mid.pos.y));-70
random=150,150
facing=-1
ownpal=1
ontop=1
scale = .5,.5
pausemovetime=300
supermovetime=300

[State 2071, sparks]
type=explod
trigger1=animelem=67||animelem=68||animelem=69||animelem=70||animelem=71||animelem=72||animelem=73||animelem=74||animelem=75
trigger2=animelem=76||animelem=77||animelem=78||animelem=79||animelem=80||animelem=81||animelem=82||animelem=83||animelem=84||animelem=85
trigger3=animelem=86||animelem=87||animelem=88||animelem=89||animelem=90||animelem=91||animelem=92||animelem=93||animelem=94||animelem=95
trigger4=animelem=96||animelem=97||animelem=98||animelem=99||animelem=100||animelem=101||animelem=102||animelem=103||animelem=104||animelem=105
trigger5=animelem=106||animelem=107||animelem=108||animelem=109||animelem=110||animelem=111||animelem=112||animelem=113||animelem=114||animelem=115
trigger6=animelem=116||animelem=117||animelem=118||animelem=119||animelem=120||animelem=121||animelem=122||animelem=123||animelem=124||animelem=125
trigger7=animelem=126||animelem=127||animelem=128||animelem=129||animelem=130||animelem=131||animelem=132||animelem=133||animelem=134||animelem=135
trigger8=animelem=136||animelem=137||animelem=138||animelem=139||animelem=140||animelem=141||animelem=142||animelem=143||animelem=144||animelem=145
trigger9=animelem=146||animelem=147||animelem=148||animelem=149||animelem=150||animelem=151||animelem=152||animelem=153||animelem=154||animelem=155
trigger10=animelem=156||animelem=157||animelem=158||animelem=159||animelem=160||animelem=161||animelem=162||animelem=163||animelem=164||animelem=165
trigger11=animelem=166||animelem=167||animelem=168||animelem=169||animelem=170||animelem=171||animelem=172||animelem=173||animelem=174||animelem=175
trigger12=animelem=176||animelem=177||animelem=178||animelem=179||animelem=180||animelem=181||animelem=182||animelem=183||animelem=184||animelem=185
trigger13=animelem=186||animelem=187||animelem=188||animelem=189||animelem=190||animelem=191||animelem=192||animelem=193||animelem=194||animelem=195
trigger14=animelem=196||animelem=197||animelem=198||animelem=199||animelem=200||animelem=201||animelem=202||animelem=203||animelem=204||animelem=205
trigger15=animelem=206||animelem=207||animelem=208||animelem=209||animelem=210||animelem=211||animelem=212||animelem=213||animelem=214||animelem=215
trigger16=animelem=216||animelem=217||animelem=218||animelem=219||animelem=220||animelem=221||animelem=222||animelem=223||animelem=224||animelem=225
trigger17=animelem=226||animelem=227||animelem=228||animelem=229||animelem=230||animelem=231||animelem=232||animelem=233||animelem=234||animelem=235
trigger18=animelem=236||animelem=237||animelem=238||animelem=239||animelem=240||animelem=241||animelem=242||animelem=243||animelem=244||animelem=245
trigger19=animelem=246||animelem=247||animelem=248||animelem=249||animelem=250||animelem=251||animelem=252||animelem=253||animelem=254||animelem=255
trigger20=animelem=256||animelem=257||animelem=258||animelem=259||animelem=260||animelem=261||animelem=262||animelem=263||animelem=264||animelem=265
trigger21=animelem=266||animelem=267||animelem=268||animelem=269||animelem=270||animelem=271||animelem=272||animelem=273||animelem=274||animelem=275
trigger22=animelem=276||animelem=277||animelem=278||animelem=279||animelem=280||animelem=281||animelem=282||animelem=283||animelem=284||animelem=285
trigger23=animelem=286||animelem=287||animelem=288||animelem=289||animelem=290||animelem=291||animelem=292||animelem=293||animelem=294||animelem=295
anim=ifelse(!var(30),79,79+(random%999))
ID=9400
sprpriority=5
postype=p2
pos=50,(target,const(size.mid.pos.y));-70
random=350,350
facing=-1
ownpal=1
ontop=1
scale = .3,.3
pausemovetime=300
supermovetime=300

[State 2071, sparks]
type=explod
trigger1=animelem=130||animelem=131||animelem=132||animelem=133||animelem=134||animelem=135
trigger2=animelem=136||animelem=137||animelem=138||animelem=139||animelem=140||animelem=141||animelem=142||animelem=143||animelem=144||animelem=145
trigger3=animelem=146||animelem=147||animelem=148||animelem=149||animelem=150||animelem=151||animelem=152||animelem=153||animelem=154||animelem=155
trigger4=animelem=156||animelem=157||animelem=158||animelem=159||animelem=160||animelem=161||animelem=162||animelem=163||animelem=164||animelem=165
trigger5=animelem=166||animelem=167||animelem=168||animelem=169||animelem=170||animelem=171||animelem=172||animelem=173||animelem=174||animelem=175
trigger6=animelem=176||animelem=177||animelem=178||animelem=179||animelem=180||animelem=181||animelem=182||animelem=183||animelem=184||animelem=185
trigger7=animelem=186||animelem=187||animelem=188||animelem=189||animelem=190||animelem=191||animelem=192||animelem=193||animelem=194||animelem=195
trigger8=animelem=196||animelem=197||animelem=198||animelem=199||animelem=200||animelem=201||animelem=202||animelem=203||animelem=204||animelem=205
trigger9=animelem=206||animelem=207||animelem=208||animelem=209||animelem=210||animelem=211||animelem=212||animelem=213||animelem=214||animelem=215
trigger10=animelem=216||animelem=217||animelem=218||animelem=219||animelem=220||animelem=221||animelem=222||animelem=223||animelem=224||animelem=225
trigger11=animelem=226||animelem=227||animelem=228||animelem=229||animelem=230||animelem=231||animelem=232||animelem=233||animelem=234||animelem=235
trigger12=animelem=236||animelem=237||animelem=238||animelem=239||animelem=240||animelem=241||animelem=242||animelem=243||animelem=244||animelem=245
trigger13=animelem=246||animelem=247||animelem=248||animelem=249||animelem=250||animelem=251||animelem=252||animelem=253||animelem=254||animelem=255
trigger14=animelem=256||animelem=257||animelem=258||animelem=259||animelem=260||animelem=261||animelem=262||animelem=263||animelem=264||animelem=265
trigger15=animelem=266||animelem=267||animelem=268||animelem=269||animelem=270||animelem=271||animelem=272||animelem=273||animelem=274||animelem=275
trigger16=animelem=276||animelem=277||animelem=278||animelem=279||animelem=280||animelem=281||animelem=282||animelem=283||animelem=284||animelem=285
trigger17=animelem=286||animelem=287||animelem=288||animelem=289||animelem=290||animelem=291||animelem=292||animelem=293||animelem=294||animelem=295
anim=ifelse(!var(30),7777,7777+(random%999))
ID=9400
sprpriority=5
postype=p2
pos=50,(target,const(size.mid.pos.y));-70
random=250,250
facing=-1
ownpal=1
ontop=1
scale = .5,.5
pausemovetime=300
supermovetime=300

[State 2070, AssertSpecial]
type = AssertSpecial
trigger1 = time = [0,150]
flag = nobg
flag2 = timerfreeze
flag3 = noFG


[State 2071, shake]
type=envshake
trigger1=animelem=2||animelem=3||animelem=4||animelem=5||animelem=6||animelem=7||animelem=8||animelem=9||animelem=10
trigger2=animelem=10||animelem=11||animelem=12||animelem=13||animelem=14||animelem=15||animelem=16||animelem=17
trigger3=animelem=18||animelem=19||animelem=20||animelem=21||animelem=22||animelem=23||animelem=24||animelem=25||animelem=26
trigger4=animelem=27||animelem=28||animelem=29||animelem=30||animelem=31||animelem=32||animelem=33||animelem=34
trigger5=animelem=36||animelem=37||animelem=38||animelem=39||animelem=40||animelem=41||animelem=42||animelem=43||animelem=44||animelem=45
trigger6=animelem=46||animelem=47||animelem=48||animelem=49||animelem=50||animelem=51||animelem=52||animelem=53||animelem=54||animelem=55
trigger7=animelem=56||animelem=57||animelem=58||animelem=59||animelem=60||animelem=61||animelem=62||animelem=63||animelem=64||animelem=65
trigger8=animelem=66||animelem=67||animelem=68||animelem=69||animelem=70||animelem=71||animelem=72||animelem=73||animelem=74||animelem=75
trigger9=animelem=76||animelem=77||animelem=78||animelem=79||animelem=80||animelem=81||animelem=82||animelem=83||animelem=84||animelem=85
trigger10=animelem=86||animelem=87||animelem=88||animelem=89||animelem=90||animelem=91||animelem=92||animelem=93||animelem=94||animelem=95
trigger11=animelem=96||animelem=97||animelem=98||animelem=99||animelem=100||animelem=101||animelem=102||animelem=103||animelem=104||animelem=105
trigger12=animelem=106||animelem=107||animelem=108||animelem=109||animelem=110||animelem=111||animelem=112||animelem=113||animelem=114||animelem=115
trigger13=animelem=116||animelem=117||animelem=118||animelem=119||animelem=120||animelem=121||animelem=122||animelem=123||animelem=124||animelem=125
trigger14=animelem=126||animelem=127||animelem=128||animelem=129||animelem=130||animelem=131||animelem=132||animelem=133||animelem=134||animelem=135
trigger15=animelem=136||animelem=137||animelem=138||animelem=139||animelem=140||animelem=141||animelem=142||animelem=143||animelem=144||animelem=145
trigger16=animelem=146||animelem=147||animelem=148||animelem=149||animelem=150||animelem=151||animelem=152||animelem=153||animelem=154||animelem=155
trigger17=animelem=156||animelem=157||animelem=158||animelem=159||animelem=160||animelem=161||animelem=162||animelem=163||animelem=164||animelem=165
trigger18=animelem=166||animelem=167||animelem=168||animelem=169||animelem=170||animelem=171||animelem=172||animelem=173||animelem=174||animelem=175
trigger19=animelem=176||animelem=177||animelem=178||animelem=179||animelem=180||animelem=181||animelem=182||animelem=183||animelem=184||animelem=185
trigger20=animelem=186||animelem=187||animelem=188||animelem=189||animelem=190||animelem=191||animelem=192||animelem=193||animelem=194||animelem=195
trigger21=animelem=196||animelem=197||animelem=198||animelem=199||animelem=200||animelem=201||animelem=202||animelem=203||animelem=204||animelem=205
trigger22=animelem=206||animelem=207||animelem=208||animelem=209||animelem=210||animelem=211||animelem=212||animelem=213||animelem=214||animelem=215
trigger23=animelem=216||animelem=217||animelem=218||animelem=219||animelem=220||animelem=221||animelem=222||animelem=223||animelem=224||animelem=225
trigger24=animelem=226||animelem=227||animelem=228||animelem=229||animelem=230||animelem=231||animelem=232||animelem=233||animelem=234||animelem=235
trigger25=animelem=236||animelem=237||animelem=238||animelem=239||animelem=240||animelem=241||animelem=242||animelem=243||animelem=244||animelem=245
trigger26=animelem=246||animelem=247||animelem=248||animelem=249||animelem=250||animelem=251||animelem=252||animelem=253||animelem=254||animelem=255
trigger27=animelem=256||animelem=257||animelem=258||animelem=259||animelem=260||animelem=261||animelem=262||animelem=263||animelem=264||animelem=265
trigger28=animelem=266||animelem=267||animelem=268||animelem=269||animelem=270||animelem=271||animelem=272||animelem=273||animelem=274||animelem=275
trigger29=animelem=276||animelem=277||animelem=278||animelem=279||animelem=280||animelem=281||animelem=282||animelem=283||animelem=284||animelem=285
trigger30=animelem=286||animelem=287||animelem=288||animelem=289||animelem=290||animelem=291||animelem=292||animelem=293||animelem=294||animelem=295
time=2
freq=90
ampl=-3

[State 2071, snd]
type=playsnd
trigger1=animelemtime(296)=10
value=5150,500
channel=0

[State 2071, throw]
type=targetstate
trigger1=animelemtime(295)>=0&&numtarget(2070)
value=2076
ID=2070
persistent=0

[State 2071, end]
type=changestate
trigger1=animelemtime(295)>=0&&winko
value= 2077


[State 2071, end]
type=changestate
trigger1=!animtime
value= 0
ctrl=1


;-------------------------------------------------------------------------------
[Statedef 2075]
type=S
physics=N
movetype=H
velset=0,0
ctrl=0

[State 2075, anim]
type=changeanim2
trigger1=!time
value= 5002

[Statedef 2076]
type=L
physics=C
movetype=H
velset=0,0
ctrl=0
[State 2076, anim]
type=changeanim2
trigger1=!time
value=2073
[State 2076, end]
type=selfstate
trigger1=!alive
value=5150
[State 2076, end]
type=selfstate
trigger1=!animtime&&alive
value=5120

[State 2076]
type = LifeSet
trigger1 = 1
value = -1

;-------------------------------------------------------------------------------
[Statedef 2077]
type=S
sprpriority=-4
anim=2077

[State 2077, snd]
type=playsnd
trigger1= animelem=1
value=7500,2

[State 2077, Pic]
type=explod
trigger1= animelem=1
anim=5700
ID=5700
sprpriority=-100
facing=1
pos = 0,0
postype = back
ownpal=0
scale = 1,1
bindtime=-1
removetime = 750
removeongethit=1
ownpal=1


[State 2077]
type = AssertSpecial
trigger1 = 1
flag = nomusic
flag2 = nobg
flag3 = nobardisplay

[State 2077, win]
type=changestate
trigger1=prevstateno=2071&&time>750
value=181
ctrl=1



[Statedef 2080]
type = A
movetype = A
physics = A
juggle  = 5
poweradd= 0
ctrl = 0
velset = 0,0
anim = 2080
sprpriority = 2

[State 2080, Omni-Effect]
type=nothitby
trigger1=time<10
time=1
value=SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP

[State pal]
type = BGPalFX
trigger1 = animelem = 1
time = 65
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = time >= 1
time = 65
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1

[State 2080, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4500
pos= 0,-80
removetime = 64
supermove = 1
sprpriority = 5

[State 2080, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2080, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2080]
type = Explod
trigger1=  timemod = 100,0
anim = 7777
sprpriority = -1
postype = p1
pos = -70,-40
removetime = 64
supermove = 1
sprpriority = 5

[State 2080, superchargepause]
type=superpause
trigger1=!time
time=60
anim=-1
sound=s4500,0
poweradd=-2000
p2defmul=1
darken=0

[State 2080]
type = VelSet
trigger1 = time = [0,310]
x = 0
y = -0.01

[State 2080, 4]
type = Helper
trigger1 = timemod = 8,0
helpertype = normal
ID = 1141
pos = 40, -80
postype = p1
stateno = 1141
ownpal = 1

[State 2080, 4]
type = Helper
trigger1 = timemod = 8,0
helpertype = normal
ID = 1141
pos = -50, -70
postype = p1
stateno = 1141
ownpal = 1


[state 2080, 5]
type = PalFX
trigger1 = time = [3, 5];[8,11]
add = 40,60,60
time = 1

[state 2080, 6]
type = PalFX
trigger1 = time = [6, 7];[12,14]
add = 80,120,120
time = 1

[state 2080, 7]
type = PalFX
trigger1 = time = [8, 9];[15,17]
add = 120,180,180
time = 1

[state 2080, 8]
type = PalFX
trigger1 = time = [10, 11];[18,20]
add = 160,240,240
time = 1

[state 2080, 9]
type = PalFX
trigger1 = time = 12;21
add = 120,180,180
time = 1

[state 2080, 10]
type = PalFX
trigger1 = time = 13;22
add = 40,60,60
time = 1

[State 2080, 11]
type = Width
trigger1 = Time = [12, 37]
player = 20, 5

[State 20801, 12]
type = PlaySnd
trigger1 = AnimElem = 4
value = 970, 50
channel = 0

[State 2080, 13]
type = PlaySnd
trigger1 = AnimElem = 4
value = 1140, 0

[State 2080, 14]
type = ChangeState
trigger1 = AnimTime = 0
value = 51
ctrl = 1

;------------------------------------------------------------------------------

;-----------------------------------------------------------------------=-------


[Statedef 2300]
type=S
physics=S
movetype=A
anim= 2300
ctrl=0
velset=0,0

[State 2300, Omni-Effect]
type=nothitby
trigger1=time<10
time=1
value=SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP

[State 2300]
type = Helper
trigger1 = animelem = 7
helpertype = normal
name = "ray"
stateno = 2310
pos = 100,-80
ownpal = 1
size.xscale = .5
size.yscale = .5


[State 2300,5]
type = Width
trigger1 = Time = [12, 37]
player = 20, 5

[State 2300, 6]
type = PlaySnd
trigger1 = AnimElem = 4
value = 190, 2
channel = 0


[State 2300, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4500
postype = p1
pos= 0,-80
removetime = 64
supermove = 1
sprpriority = 5

[State 2300, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2300, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2300]
type = Explod
trigger1=  timemod = 100,0
anim = 7777
sprpriority = -1
postype = p1
pos = -70,-40
removetime = 64
supermove = 1
sprpriority = 5
[State 2300, superchargepause]
type=superpause
trigger1=!time
time=60
anim=-1
sound=s4500,0
poweradd=-2000
p2defmul=1
darken=0

[State pal]
type = BGPalFX
trigger1 = animelem = 1
time = 65
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = time >= 1
time = 65
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1



[State 2300, nhb]
type=nothitby
trigger1=time<10
time=1
value=SCA

[State 2300, snd]
type=playsnd
trigger1=animelemtime(1)>1
value= 970,30
persistent=0


[State 2300]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;-----------------------------------------------------------------------=-------


[Statedef 2310]
type = A
movetype = A
physics = N
anim = 2243
ctrl = 0

[State 2242]
type = AssertSpecial
trigger1 = 1
flag = invisible

[State pal]
type = PalFX
trigger1 = time = 42
time = 8
sinadd = -256,-256,-256,32
persistent = 0
ignorehitpause = 1

[State explod]
type = Explod
trigger1 = time = 0
anim = 2242
removetime = -1
supermove = 1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9
ignorehitpause = 1
[State explod]
type = Explod
trigger1 = time = 0
anim = 2243
ID = 2243
supermove = 1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9
ignorehitpause = 1

[State var]
type = varset
trigger1 = time = 0
fvar(2) = 1
ignorehitpause = 1
[State var]
type = varadd
trigger1 = time = [1,9]
fvar(2) = .75
ignorehitpause = 1
[State explod]
type = ModifyExplod
trigger1 = 1
ID = 2243
scale = const(size.xscale),const(size.yscale)*fvar(2)
ignorehitpause = 1
[State explod]
type = RemoveExplod
trigger1 = time = 10
ID = 2243

[State explod]
type = Explod
trigger1 = time = 10
anim = 2244
pos = 150,0
bindtime = -1
removetime = -1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9
[State explod]
type = Explod
trigger1 = time = 10
anim = 2245
pos = 120,0
bindtime = -1
removetime = -1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9
[State explod]
type = Explod
trigger1 = time = 10
anim = 2246
pos = 90,0
bindtime = -1
removetime = -1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9
[State explod]
type = Explod
trigger1 = time = 10
anim = 2247
pos = 60,0
bindtime = -1
removetime = -1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9
[State explod]
type = Explod
trigger1 = time = 10
anim = 2248
pos = 30,0
bindtime = -1
removetime = -1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9
[State explod]
type = Explod
trigger1 = time = 10
anim = 2249
pos = 0,0
bindtime = -1
removetime = -1
scale = const(size.xscale),const(size.yscale)
sprpriority = 9

[State hit]
type = HitDef
trigger1 = timemod = 1,0 && time = [0,220]
trigger1 = numhelper(9100) = 1
attr = A,HP
hitflag = MAFDP
guardflag = MA
animtype = HARD
damage = Ceil(0.08 * enemy,Const(data.life)),Ceil(0.02 * enemy,Const(data.life))
pausetime = 0,0
sparkno = s9402
guard.sparkno = s9480
sparkxy = -10,-0
hitsound = s4020,0
guardsound = s4420,0
ground.slidetime = 20
ground.hittime = 20
yaccel = 1
ground.velocity = -5,-6
air.velocity = -5,-6
airguard.velocity = -3,-4
down.velocity = -2,-8
fall = 1
fall.recover = 0
numhits = 1
getpower = 0
givepower = 0
envshake.time = 4
envshake.ampl = -2
kill = 1

[State hit]
type = HitDef
trigger1 = timemod = 2,0 && time = [0,220]
attr = A,HP
hitflag = MAFDP
guardflag = MA
animtype = HARD
damage = Ceil(0.02 * enemy,Const(data.life)),Ceil(0.0002 * enemy,Const(data.life))
pausetime = 0,0
sparkno = s9401
guard.sparkno = s9480
sparkxy = -10,-0
hitsound = s4020,0
guardsound = s4420,0
ground.slidetime = 20
ground.hittime = 20
yaccel = 1
ground.velocity = -5,-6
air.velocity = -5,-6
airguard.velocity = -3,-4
down.velocity = -2,-8
fall = 1
fall.recover = 0
numhits = 1
getpower = 0
givepower = 0
envshake.time = 4
envshake.ampl = -2
kill = 1

[State explod]
type = RemoveExplod
trigger1 = time = 50
[State end]
type = DestroySelf
trigger1 = time = 50

;------------------------------------------------------------------------------
[Statedef 2350]
type = A
movetype = A
physics = A
anim = 2350
ctrl = 0

[State 2350, Omni-Effect]
type=nothitby
trigger1=time<10
time=1
value=SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP

[State 2350, super effect]
type = Explod
trigger1 = animelem=1||animelem=2||animelem=3||animelem=4||animelem=5||animelem=6
anim = 7774
postype = p1
bindtime = -1
removetime = 75
pos= 40,-80
supermove = 1
sprpriority = -5

[State target]
type = TargetState
trigger1 = movehit
value = 5060
persistent = 0
ignorehitpause = 1

[State 2350, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4500
postype = p1
pos= 0,-80
removetime = 64
supermove = 1
sprpriority = 5

[State 2350, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2350, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2350]
type = Explod
trigger1=  timemod = 100,0
anim = 7777
sprpriority = -1
postype = p1
pos = -70,-40
removetime = 64
supermove = 1
sprpriority = 5
[State 2350, superchargepause]
type=superpause
trigger1=!time
time=60
anim=-1
sound=s4500,0
poweradd=-1000
p2defmul=1
darken=0

[State pal]
type = BGPalFX
trigger1 = animelem = 1
time = 65
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = time >= 1
time = 65
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1



[State vel]
type = velset
trigger1 = 1
x = 10
y = -0.01

[State hit]
type = HitDef
trigger1 = timemod = 3,0
trigger1 = numhelper(9100) = 0
attr = A,NA
guardflag = HA
animtype = hard
damage = Ceil(0.01 * enemy,Const(data.life)),Ceil(0.005 * enemy,Const(data.life))
pausetime = 10,10+(var(8)!=0)*6
sparkno = s9400
guard.sparkno = s9450
sparkxy = -10,-25
hitsound = s4020,0
guardsound = s4460,0
ground.slidetime = 20
ground.hittime = 20
ground.velocity = -4
air.velocity = -1,-3-fvar(14)
air.fall = fvar(14)
fall.recovertime = ifelse(fvar(14)=1,40,4)

[State hit]
type = HitDef
trigger1 = timemod = 4,0
trigger1 = numhelper(9100) = 1
attr = A,NA
guardflag = HA
animtype = hard
damage = Ceil(0.03 * enemy,Const(data.life)),Ceil(0.01 * enemy,Const(data.life))
pausetime = 10,10+(var(8)!=0)*6
sparkno = s9402
guard.sparkno = s9450
sparkxy = -10,-25
hitsound = s4020,0
guardsound = s4460,0
ground.slidetime = 20
ground.hittime = 20
ground.velocity = -4
air.velocity = -1,-3-fvar(14)
air.fall = fvar(14)
fall.recovertime = ifelse(fvar(14)=1,40,4)

[State snd]
type = PlaySnd
trigger1 = animelem = 2,-1
value = 4060,10

[State type]
type = StateTypeSet
trigger1 = animelem = 6
movetype = I

[State type]
type = StateTypeSet
trigger1 = fvar(14) = 1
physics = N
[State vel]
type = veladd
trigger1 = fvar(14) = 1
y = .35

[State end]
type = ChangeState
trigger1 = pos y >= 0 && vel y > 0
trigger2 = animtime = 0
value = 51
ctrl = 1

;-------------------------------------------------------------------------------

[Statedef 2400]
type=S
physics=S
movetype=A
anim= 2400
ctrl=0
velset=0,0

[State 2400]
type = PlaySnd
trigger1 = time = 12
value = 4460,0


[State 2400, Omni-Effect]
type=nothitby
trigger1=time<10
time=1
value=SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP

[State 2400, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4500
postype = p1
pos= 0,-80
removetime = 64
supermove = 1
sprpriority = 5

[State 2400, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2400, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2400, super effect]
type = Explod
trigger1 =animelem=1||animelem=2||animelem=3||animelem=4||animelem=5||animelem=6||animelem=7||animelem=8
anim = 7773
postype = p1
bindtime = -1
removetime = 50
pos= 0,-120
supermove = 1
sprpriority = -5

[State 2400]
type = Explod
trigger1=  timemod = 100,0
anim = 7777
sprpriority = -1
postype = p1
pos = -70,-40
removetime = 64
supermove = 1
sprpriority = 5
[State 2400, superchargepause]
type=superpause
trigger1=!time
time=60
anim=-1
sound=s4500,0
poweradd=-2000
p2defmul=1
darken=0

[State pal]
type = BGPalFX
trigger1 = animelem = 1
time = 65
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = time >= 1
time = 65
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1



[State vel]
type = velset
trigger1 = 1
x = 0
y = -10

[State hit]
type = HitDef
trigger1 = timemod = 1,0
trigger1 = numhelper(9100) = 0
attr = A,NA
guardflag = HA
animtype = up
damage = Ceil(0.03 * enemy,Const(data.life)),Ceil(0.005 * enemy,Const(data.life))
pausetime = 1,1+(var(8)!=0)*6
sparkno = s9400
guard.sparkno = s9450
sparkxy = -10,-25
hitsound = s4020,0
guardsound = s4460,0
ground.slidetime = 20
ground.hittime = 20
ground.velocity = -4
ground.velocity = 0,0
air.hittime = 120
air.velocity = 0,-20
airguard.velocity = 0,0
air.juggle = 110
air.fall = fvar(14)
fall.recovertime = ifelse(fvar(14)=1,40,4)

[State hit]
type = HitDef
trigger1 = timemod = 1,0
trigger1 = numhelper(9100) = 1
attr = A,NA
guardflag = HA
animtype = up
damage = Ceil(0.05 * enemy,Const(data.life)),Ceil(0.02 * enemy,Const(data.life))
pausetime = 1,1+(var(8)!=0)*6
sparkno = s9402
guard.sparkno = s9450
sparkxy = -10,-25
hitsound = s4020,0
guardsound = s4460,0
ground.slidetime = 20
ground.hittime = 20
ground.velocity = -4
air.hittime = 120
air.velocity = 0,-20
airguard.velocity = 0,0
air.juggle = 110
air.fall = fvar(14)
fall.recovertime = ifelse(fvar(14)=1,40,4)

[State snd]
type = PlaySnd
trigger1 = animelem = 2,-1
value = 4060,10

[State type]
type = StateTypeSet
trigger1 = animelem = 6
movetype = I

[State type]
type = StateTypeSet
trigger1 = fvar(14) = 1
physics = N
[State vel]
type = veladd
trigger1 = fvar(14) = 1
y = .35

[State target]
type = TargetState
trigger1 = movehit
value = 5060
persistent = 0
ignorehitpause = 1

[State end]
type = ChangeState
trigger1 = pos y >= 0 && vel y > 0
trigger2 = animtime = 0
value = 51
ctrl = 1


;-------------------------------------------------------------------------------
[Statedef 2450]
type=S
physics=S
movetype=A
anim= 2450
ctrl=0
velset=0,0

[State 2450]
type = PlaySnd
trigger1 = animelem = 1,1
value = 191,ifelse(var(1)>=3,var(1)*10,0)


[State 2450, Omni-Effect]
type=nothitby
trigger1=time<10
time=1
value=SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP

[State 2450, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4500
postype = p1
pos= 0,-80
removetime = 64
supermove = 1
sprpriority = 5

[State 2450, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2450, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2450]
type = Explod
trigger1=  timemod = 100,0
anim = 7777
sprpriority = -1
postype = p1
pos = -70,-40
removetime = 64
supermove = 1
sprpriority = 5
[State 2450, superchargepause]
type=superpause
trigger1=!time
time=60
anim=-1
sound=s4500,0
poweradd=-1000
p2defmul=1
darken=0

[State pal]
type = BGPalFX
trigger1 = animelem = 1
time = 65
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = time >= 1
time = 65
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1

[State 2450]
type = Projectile
trigger1 = time = [20,300]
trigger1 = P2Life != 0
projanim = 15000
projremovetime = 1
attr = SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP
reversal.attr = SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP
damage = Ceil(0.002 * enemy,Const(data.life)),Ceil(0.00001 * enemy,Const(data.life))
numhits = 1
guardflag =
pausetime = 0,0
sparkno = 78
p2stateno = 5020
hitsound = s4020,0
guardsound = s4460,0

[State 2450]
type = ChangeState
trigger1 = animtime = 0
ctrl = 1
value = 0

;===============================================================================
;RESURRECTION: Yes you have got to be fucking kidding me.
;===============================================================================

[Statedef 2500]
type=A
physics=N
movetype=I
anim=2500
sprpriority=-1
velset=0,-.5
ctrl=0

[State 2500]
type = AssertSpecial
trigger1 = 1
flag = noko
flag2 = roundnotover
ignorehitpause = 1


[State 2500]
type = PlaySnd
trigger1 = time = 1
value = 192,531


[State pal]
type = BGPalFX
trigger1 = animelem = 1
time = 65
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = time >= 1
time = 65
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1


[State 2500, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4500
pos= 0,-80
removetime = 64
supermove = 1
sprpriority = 5

[State 2500, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2500, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2500]
type = Explod
trigger1=  timemod = 100,0
anim = 7777
sprpriority = -1
postype = p1
pos = -70,-40
removetime = 64
supermove = 1
sprpriority = 5
[State 2500, superchargepause]
type=superpause
trigger1=!time
time=60
anim=-1
sound=s4500,0
poweradd=-3001
p2defmul=1
darken=0
[State pal]
type = BGPalFX
trigger1 = animelem = 4
time = 1
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = animelem = 4,>= 26
time = 1
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1

[State 2500]
type=nothitby
trigger1=1
value=SCA,AA,AP,AT
time=1

[State 2500]
type = Lifeset
trigger1 = var(57)= 1
value = 1000
absolute = 1
ignorehitpause = 1

[State 2500, RESURRECTION Helper]
type = Helper
trigger1 = !time
trigger1 = numhelper(2501) = 0
helpertype = normal
name = "RESURRECTION"
stateno = 2501
ID = 2501
ownpal = 1
supermovetime = 9999
ignorehitpause = 1

[State 2500]
type = Varset
trigger1 = numhelper(2501) = 1
var(56) = 1


[State 2500]
type=playsnd
trigger1=!time
value=7500,2


[State 2500]
type=bgpalfx
trigger1=random<50
time=10
add=128,128,128
sinadd=-128,-128,-128,40

[State 2500, end]
type=changestate
trigger1=time>=150
value=51
ctrl=1



;===============================================================================
;RESURRECTION: The Helper Needed
;===============================================================================

[Statedef 2501]
anim=2501
physics = N
[State 2501, safety]
type=selfstate
trigger1=!ishelper
value=0

[State 2501, facing]
type=turn
trigger1=facing!=root,facing
[State 2501, pausecheck]
type=varset
trigger1=(root,movecontact)&&!(root,ctrl)
trigger2=(facing!=root,facing)
var(56)=0

;===============================================================================
[Statedef 2600]
type=S
physics=S
movetype=A
anim= 2600
ctrl=0
velset=0,0

[State 2600, Omni-Effect]
type=nothitby
trigger1=time<10
time=1
value=SCA, NA, SA, HA, NP, SP, HP, NT, ST, HT, AA, AT, AP

[State 2600, 6]
type = PlaySnd
trigger1 = AnimElem = 4
value = 190, 2
channel = 0


[State 2600, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4500
postype = p1
pos= 0,-80
removetime = 64
supermove = 1
sprpriority = 5



[State 2600, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2600, super effect]
type = Explod
trigger1 =  timemod = 100,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 2600]
type = Explod
trigger1=  timemod = 100,0
anim = 7777
sprpriority = -1
postype = p1
pos = -70,-40
removetime = 64
supermove = 1
sprpriority = 5
[State 2600, superchargepause]
type=superpause
trigger1=!time
time=60
anim=-1
sound=s4500,0
poweradd=-3000
p2defmul=1
darken=0

[State pal]
type = BGPalFX
trigger1 = animelem = 1
time = 65
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = time >= 1
time = 65
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1



[State 2600, nhb]
type=nothitby
trigger1=time<10
time=1
value=SCA

[State 2600, snd]
type=playsnd
trigger1=animelemtime(1)>1
value= 970,30
persistent=0


[State 2600]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

[State 2600]
type = Helper
triggerall = numhelper(2601) = 0
trigger1 = animelem = 5
helpertype = player
name = "clone"
stateno = 9000
ID = 9000
pos = 30,0
keyctrl = 1

[State 2600, Clone Helper]
type = Helper
trigger1 = animelem = 5
trigger1 = numhelper(2601) = 0
helpertype = normal
name = "Clone"
stateno = 2601
ID = 2601
ownpal = 1
supermovetime = 9999
ignorehitpause = 1

[State 2600]
type = Varset
trigger1 = numhelper(2601) = 1
var(55) = 1


;===============================================================================
;Clone: The Helper Needed
;===============================================================================

[Statedef 2601]
anim=2501
physics = N
[State 2601, safety]
type=selfstate
trigger1=!ishelper
value=0

[State 2601, facing]
type=turn
trigger1=facing!=root,facing
[State 2601, pausecheck]
type=varset
trigger1=(root,movecontact)&&!(root,ctrl)
trigger2=(facing!=root,facing)
var(55)=0

